/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：03/02/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/  

package com.application.yfwaring.struts.form;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.List;
import com.manager.commons.StringUtil;
import com.application.yfwaring.entity.YfWarning;
import java.util.Date;
 /**
 * 
 * Description: YfWarningForm Struts Action Form<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 03/02/2012 .
 * 
 */
public class  YfWarningForm extends ActionForm
{

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;
	
	public YfWarningForm(){
  
	}

		      
	private String id;
        
        	      
	private String bussId;
        
        	      
	private Long bussType;
        
        	      
	private String belong;
        
        	      
	private String workitemId;
        
        	      
	private Long warnType;
        
        	      
	private String title;
        
        	      
	private Date completeTime;
        
        	      
	private String operateid;
        
        	      
	private Date createDate;
        
        
        private String ids;

	                        
	                                                                                                        	private String completeTimeStr;
                        
	
         	         	         	         	         	         	         	 	/**
	 * @return Returns the CompleteTime.
	 */
	public String getCompleteTimeStr(){
	        String re = "";
		if(this.completeTime == null) {
			return re;
		}
		try {
			re = StringUtil.dateToString(this.completeTime);
		}
		catch(Exception e) {
			e.printStackTrace();
		}
		return re;
	}
	

	/**
	 * @param ${field.propertyName} Set the ${field.propertyName}.
	 */	
	public void setCompleteTimeStr(String completeTimeStr){
		this.completeTimeStr = completeTimeStr;
		if(this.completeTimeStr != null && !"".equals(this.completeTimeStr)) {
			try {
				this.completeTime = StringUtil.stringToDate(this.completeTimeStr);
			}
			catch(Exception e) {
				e.printStackTrace();
			}
		}

	}
                

        	/**
	 * @return Returns the Id
	 */
	public String getId(){
		return this.id;
	}
	

	/**
	 * @param id Set the id.
	 */	
	public void setId(String id){
		this.id = id;
	}
	
        	/**
	 * @return Returns the BussId
	 */
	public String getBussId(){
		return this.bussId;
	}
	

	/**
	 * @param bussId Set the bussId.
	 */	
	public void setBussId(String bussId){
		this.bussId = bussId;
	}
	
        	/**
	 * @return Returns the BussType
	 */
	public Long getBussType(){
		return this.bussType;
	}
	

	/**
	 * @param bussType Set the bussType.
	 */	
	public void setBussType(Long bussType){
		this.bussType = bussType;
	}
	
        	/**
	 * @return Returns the Belong
	 */
	public String getBelong(){
		return this.belong;
	}
	

	/**
	 * @param belong Set the belong.
	 */	
	public void setBelong(String belong){
		this.belong = belong;
	}
	
        	/**
	 * @return Returns the WorkitemId
	 */
	public String getWorkitemId(){
		return this.workitemId;
	}
	

	/**
	 * @param workitemId Set the workitemId.
	 */	
	public void setWorkitemId(String workitemId){
		this.workitemId = workitemId;
	}
	
        	/**
	 * @return Returns the WarnType
	 */
	public Long getWarnType(){
		return this.warnType;
	}
	

	/**
	 * @param warnType Set the warnType.
	 */	
	public void setWarnType(Long warnType){
		this.warnType = warnType;
	}
	
        	/**
	 * @return Returns the Title
	 */
	public String getTitle(){
		return this.title;
	}
	

	/**
	 * @param title Set the title.
	 */	
	public void setTitle(String title){
		this.title = title;
	}
	
        	/**
	 * @return Returns the CompleteTime
	 */
	public Date getCompleteTime(){
		return this.completeTime;
	}
	

	/**
	 * @param completeTime Set the completeTime.
	 */	
	public void setCompleteTime(Date completeTime){
		this.completeTime = completeTime;
	}
	
        	/**
	 * @return Returns the Operateid
	 */
	public String getOperateid(){
		return this.operateid;
	}
	

	/**
	 * @param operateid Set the operateid.
	 */	
	public void setOperateid(String operateid){
		this.operateid = operateid;
	}
	
        	/**
	 * @return Returns the CreateDate
	 */
	public Date getCreateDate(){
		return this.createDate;
	}
	

	/**
	 * @param createDate Set the createDate.
	 */	
	public void setCreateDate(Date createDate){
		this.createDate = createDate;
	}
	
                
        
	                

	private List<YfWarning> yfWarningList;

       /**
	 * @return the yfwarningformList
	 */
	public List<YfWarning> getYfWarningList() {
		return yfWarningList;
	}

	/**
	 * @param yfWarningList the yfwarningformList to set
	 */
	public void setYfWarningList(List<YfWarning> yfWarningList) {
		this.yfWarningList = yfWarningList;
	}
        
	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

        public String toString(){
		return ReflectionToStringBuilder.toString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
}
